<?php


namespace app\common\business;


class BusBass
{
    //新增逻辑
    public function add($data)
    {
        $data['status'] = 1;
        try {
            $this->model->save($data);
        } catch (\Exception $e) {
            //记录日志
            return $e->getMessage();
           // return 0;
        }
        //返回主键ID
        return $this->model->id;
    }



}